import Vue from 'vue'
import Router from 'vue-router'

import Upload from '@/components/Upload'
import Result from '@/components/Result'
import RiskTable from '@/components/RiskTable'

Vue.use(Router)

export default new Router({
    mode: 'abstract',
    routes: [
        {
            path: '/',
            component: Upload
        },
        {
            path: '/result',
            name: 'Result',
            props: true,
            component: Result
        },
        {
            path: '/risk-table',
            name: 'RiskTable',
            props: true,
            component: RiskTable
        }
    ]
})